using System;
using System.Collections.Generic;
using System.Text;

namespace SharpMud.MudLib.Common.Environment.Persistance
{
    public interface IAreaSaveResults
    {
        IAreaSaveMessage[] Messages { get;}
    }
    public interface IAreaSaveMessage
    {
        Guid AreaInstanceID { get;}
        string Message { get;}
        bool IsCritical { get;}
    }
    public class AreaSaveMessage : IAreaSaveMessage
    {
        private Guid _AreaInstanceID;
        private string _Message;
        private bool _IsCritical;

        private AreaSaveMessage() { }
        public AreaSaveMessage(string message, Guid areaInstanceID, bool isCritical)
        {
            _Message = message;
            _AreaInstanceID = areaInstanceID;
            _IsCritical = isCritical;
        }

        #region IAreaSaveMessage Members

        public Guid AreaInstanceID
        {
            get { return _AreaInstanceID; }
        }

        public string Message
        {
            get { return _Message; }
        }

        public bool IsCritical
        {
            get { return _IsCritical; }
        }

        #endregion

    }
}
